package com.chang.dp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "未读消息", description = "当用户不在线的时候，无法接收消息，会把消息存在数据库。下次上线了后获取")
public class MessageUserEntity extends UsersEntity {
    @TableId(type= IdType.AUTO)
    private Integer id;
    @ApiModelProperty("用户接收者的userId")
    private String userId;
    @ApiModelProperty("消息内容")
    private String message;
    @ApiModelProperty("创建时间")
    private String createTime;
    @ApiModelProperty("消息发送者的userId")
    private String sendUserId;
    @ApiModelProperty(value = "消息类型", notes = "1 用户消息 2 群发消息 3 系统消息")
    private Integer type;
}
